package com.ruoyi.work.service;

import com.ruoyi.work.domain.WorkCost;

import java.util.List;

/**
 * @Author: MMDZ
 * @Desc:
 */
public interface IWorkCostService {
    List<WorkCost> selectWorkCostList(WorkCost workCost);
    WorkCost selectWorkCostById(Long costId);
    String checkUserUnique(WorkCost workCost);
    int insertWorkCost(WorkCost workCost);
    int updateWorkCost(WorkCost workCost);
    int deleteWorkCostByIds(Long[] costIds);

    /**
     * 导入成本数据
     *
     * @param costList 数据列表
     * @param isUpdateSupport 是否更新支持，如果已存在，则进行更新数据
     * @param operName 操作用户
     * @return 结果
     */
    String importData(List<WorkCost> costList, boolean isUpdateSupport, String operName);
}
